package cn.com.huzo.model.entities.tech;

import huzofw.model.entities.BaseEntity;
import huzofw.model.entities.IAggregateRoot;
import java.io.Serializable;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 单耗-配色方案实体类
 *
 * @author 吴旭
 */
public class PieceYardageLinesColourSchemaEntity extends BaseEntity implements Serializable, IAggregateRoot {

    private static final long serialVersionUID = -5752435569390551166L;
    private String LinesId;
    private Long HeaderId;
    private String ParentLinesId;         // 所属单耗表明细标识
    private Long ProductColourId;         // 成品色表示
    private String MaterialColour;        // 配色的材料色

    public String getLinesId() {
        return LinesId;
    }

    public void setLinesId(String LinesId) {
        this.LinesId = LinesId;
    }

    public Long getHeaderId() {
        return HeaderId;
    }

    public void setHeaderId(Long HeaderId) {
        this.HeaderId = HeaderId;
    }

    public String getParentLinesId() {
        return ParentLinesId;
    }

    public void setParentLinesId(String ParentLinesId) {
        this.ParentLinesId = ParentLinesId;
    }

    public Long getProductColourId() {
        return ProductColourId;
    }

    public void setProductColourId(Long ProductColourId) {
        this.ProductColourId = ProductColourId;
    }

    public String getMaterialColour() {
        return MaterialColour;
    }

    public void setMaterialColour(String MaterialColour) {
        this.MaterialColour = MaterialColour;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof PieceYardageLinesColourSchemaEntity)) {
            return false;
        }

        final PieceYardageLinesColourSchemaEntity that = (PieceYardageLinesColourSchemaEntity) o;

        return new EqualsBuilder()
                .append(this.getLinesId(), that.getLinesId())
                .isEquals();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + this.getLinesId().hashCode();

        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
